#!/bin/bash

/training/sqoop-1.4.7.bin__hadoop-2.6.0/bin/sqoop export \
--connect jdbc:mysql://192.168.112.129:3306/shop \
--username root \
--password Sjm@!_123456 \
--input-fields-terminated-by '\t' \
--table t_mr_result \
--export-dir $(cat result_path.txt) \
--class-name UpsertMrResult --update-key goodsId --update-mode allowinsert
